<?=form_open('news/add')?>
<table class="form">
    <tr>
        <td width="150" class="required label" style="width: 150px;"><?=lang('news_name');?></td>
        <td colspan="2"><input type="text" name="lb_title" id="lb_title"class="w350" value="<?=set_value('lb_title')?>"></td>
    </tr>
    <tr>
        <td class="label"><?=lang('news_image');?>
        <br />
        (135x110)</td>
        <td colspan="2"><input type="text" name="lb_image" class="w350" value="" id="hinhanh">
            <a href="<?=base_url()?>index.php/filemanager/index/hinhanh" id="addimages" class="cboxElement" title="<?=lang('add_file');?>"> <img src="<?=base_url()?>templates/images/icon/attach.png" alt=""></a></td>
    </tr>
    <tr>
        <td class="label"><?=lang('news_category');?></td>
        <td colspan="2"><select name="category_id" id="category_id" class="w200">
            <option value="0"></option>
            <?php  
                foreach($postcat as $row)
				{
					echo '<option value="'.$row->category_id.'">'.$row->lb_category.'</option>';
                }
			?>
            </select></td>
    </tr>
    <tr>
        <td class="label"><?=lang('active_deactive');?></td>
        <td colspan="2"><input name="bl_active" type="checkbox" id="bl_active"  value="1" checked="checked"></td>
    </tr>
    <tr>
        <td class="required label"><?=lang('news_sub');?></td>
        <td colspan="2"><textarea style="width: 500px;height: 100px;" name="lb_summary" id="lb_summary"><?=set_value('lb_summary')?></textarea></td>
    </tr>
    <tr>
        <td  class="label"><?=lang('news_content');?></td>
        <td colspan="2"><textarea class="full field" cols="" rows="" name="lb_content" id="wysiwyg-advanced"><?=set_value('lb_content')?></textarea></td>
    </tr>
    <tr>
        <td valign="top" class="label"><?=lang('news_keywords');?></td>
        <td colspan="2"><textarea style="width: 500px;height: 100px;" name="lb_keyword" id="lb_keyword"><?=set_value('lb_keyword')?></textarea></td>
    </tr>
    <tr>
        <td colspan="3" align="center"><input type="submit" name="bt_submit" value="" class="themmoi"></td>
    </tr>
</table>
<?=form_close()?>
